@import './variables.scss';

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: $font-family;
  font-size: 16px;
  line-height: 1.5;
  color: $text-primary;
  background-color: $background-color-base;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: $primary-color;
  text-decoration: none;
  
  &:hover {
    text-decoration: underline;
  }
}

img {
  max-width: 100%;
  height: auto;
}

// 通用布局类
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

// 响应式工具类
@each $breakpoint, $value in $breakpoints {
  @media screen and (max-width: $value) {
    .hide-#{$breakpoint}-down {
      display: none !important;
    }
  }

  @media screen and (min-width: $value) {
    .hide-#{$breakpoint}-up {
      display: none !important;
    }
  }
}

// 动画类
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

.slide-fade-enter-active {
  transition: all 0.3s ease-out;
}

.slide-fade-leave-active {
  transition: all 0.3s cubic-bezier(1, 0.5, 0.8, 1);
}

.slide-fade-enter-from,
.slide-fade-leave-to {
  transform: translateX(20px);
  opacity: 0;
} 